package com.frxuexi.document

import com.frxuexi.document.entity.DocEntity
import com.frxuexi.lib_base.ApiResponse
import kotlinx.coroutines.flow.Flow
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface ApiService {

    @POST("/document/seldocuments")
    fun getDocs(@Body body: RequestBody):Flow<ApiResponse<List<DocEntity>>>

    @POST("/document/deldocuments")
    fun deleteDoc(@Body body: RequestBody):Flow<ApiResponse<List<DocEntity>>>

    @Multipart
    @POST("/fileUpload")
    fun uploadDoc(@Part data:List<MultipartBody.Part>):Flow<ApiResponse<List<DocEntity>>>
}